import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:star_author/config/base_configuration.dart';
import 'package:star_author/widgets/empty_view/v_empty_view.dart';

class LoadingListStateView extends StatelessWidget {
  final String image;
  final String title;

  const LoadingListStateView(
    this.image,
    this.title, {
    Key? key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      alignment: Alignment.center,
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          VEmptyView(30.w),
          Image.asset(
            image,
            width: 180.w,
          ),
          VEmptyView(20.w),
          Text(
            title,
            style: TextStyle(
              color: ColorConf.lightGray,
              fontSize: 12.sp,
            ),
          ),
          VEmptyView(30.w),
        ],
      ),
    );
  }
}
